package org.example.judge_feign_api;

import org.example.judge_common.entity.ResponseResult;
import org.example.judge_pojo.Auth;
import org.example.judge_pojo.Submit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("oj-judge-contest")
public interface ContestClient {

    @PostMapping(value = "/record/send/submit",headers = {"token="+Auth.ROOT})
    ResponseResult SendSubmit(@RequestBody Submit submit);

    @PostMapping(value = "/contest/detail/{id}",headers = {"token="+Auth.ROOT})
    ResponseResult getContestById(@PathVariable String id,@RequestParam("resp") String resp);
}
